package com.young.test.bean;

import org.apache.log4j.Logger;

import javax.inject.Named;


@Named("forAspectBean")
public class ForAspectBean {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(ForAspectBean.class);

	
	public void doSomething1(){
		logger.info("This is doSomething1 ");
	}
	
	public void doSomething2(){
		logger.info("This is doSomething2 ");
	}
	
	public String returnString(){
		return "return a string";
	}
	
	public Integer returnInteger(){
		return new Integer(1);
	}
	
	public Integer returnInt(){
		return 1;
	}
	
	public void throwException(){
		throw new RuntimeException("It is a runtime exception");
	}
}
